<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>编辑项目</title>
		<%@ include file="/include/resources.jsp" %>
	</head>
	<body>
		<script type="text/javascript" src="msi/project/project.js"></script>
		<div style="padding:5px;background:#fafafa;border-bottom:1px solid #eee;">
			<table cellpadding="0" cellspacing="0" style="width:100%">
				<tr>
					<td>
						<a id="btn-submit1" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="javascript:submitProject(1)">保存</a>
						<!--  
						<s:if test='project.projectId!=null'>							
							<s:if test='project.flag=="N"'>							
								<a id="btn-submit1" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="javascript:submitAut(1)">审核</a>
								<s:if test='project.flag!="Y"'>
									<a id="btn-submit1" href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="javascript:channelContract(1)">作废</a>
								</s:if>
							</s:if>
						</s:if>
						-->
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="javascript:$('#dialog').dialog('close')">关闭</a>
					</td>
				</tr>
			</table>
		</div>
		<form action="" method="post" id="projectForm">
			<input type="hidden" name="project.projectId" value='<s:property value="project.projectId"/>'/>
			<div style="padding:10px;">
				<div style="padding-left:5px;padding-right: 5px">
					<table cellpadding="0" cellspacing="3" >
						<tr>
							<th>客户名称：</th>
							<td colspan="3"><input type="text" id="signCustID" name="project.signCustId" value='<s:property value="project.signCustId"/>'/></td>
						</tr>
						<tr>
							<th>项目编号:</th>
							<td><input type="text" name="project.projectCode" value='<s:property value="project.projectCode"/>'/></td>
							<th>项目名称:</th>
							<td><input type="text" name="project.projectName" value='<s:property value="project.projectName"/>'/></td>
						</tr>
						<tr>
							<th>开始日期:</th>
							<td><input type="text" editable="false" class="easyui-datebox" name="project.startDate" value='<s:property value="project.startDate"/>'/></td>
							<th>结束日期:</th>
							<td><input type="text" editable="false" class="easyui-datebox" name="project.endDate" value='<s:property value="project.endDate"/>'/></td>
						</tr>
						<tr>
							<th>项目描述:</th>
							<td colspan="3"><input type="text" name="project.projectDesc" value='<s:property value="project.projectDesc"/>'/></td>
						</tr>
					</table>
				</div>
			</div>
		</form>
		<script type="text/javascript">
			$(function(){
				$('#signCustID').customerselect({
					url:'searchCustomer.do',
					editable:false
				});
				$('#signCustID').combogrid('setText','${project.custName}');
			});
		</script>
	</body>
</html>